{
	template:`
    <m-page @back="back" :title="param.title">
        <m-top></m-top>
        <m-title>{{param.title}}
			<template #action>
			</template>
        </m-title>
		<m-top></m-top>
		<m-list ref="list" :url="url" :params="params" :bottom="0" :search="search">
			<template #item="{item}">
				<m-card join>
					<div class="flex padding-sm align-center">
					    <div class="padding-right-sm">
						    <div v-if="item.powers.indexOf('A')>=0" class="cu-tag radius bg-blue">管理</div>
						    <div v-if="item.powers.indexOf('B')>=0" class="cu-tag radius bg-green">店长</div>
					    </div>
						<div class="flex-sub padding-right-sm">
						    {{item.realName}}<span class="text-sm padding-left-xs">{{item.phoneNum}}</span>
						</div>
						<div v-if="selectOid==item.oid" class="cu-tag radius bg-blue light">已选</div>
						<m-button v-else @click="selectUser(item)" size="sm">选择</m-button>
					</div>
				</m-card>
			</template>
		</m-list>
    </m-page>
	`,
	props: ['param','parentVue'],
	data:function(){
		return {
            url:'action/base/userInfo/getList',
            params:{'status@eq':'Y','store.oid@eq':''},
            search:[
                {title:'姓名',name:'realName@like',input:'text'}
            ],
            selectOid:''
		};
	},
	mounted(){
	    this.selectOid=this.param.selectOid;
	    this.params['store.oid@eq']=this.param.storeOid||'';
	},
	methods:{
	    selectUser:function(user){
	        this.back(true,user);
	    }
	}
}